package com.zwb.demo.easyweb.modules.database.repository;

import com.zwb.demo.easyweb.modules.database.entity.DatabaseColumnPO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DatabaseColumnPORepository extends JpaRepository<DatabaseColumnPO, String>, JpaSpecificationExecutor<DatabaseColumnPO> {

    List<DatabaseColumnPO> findAllByTableId(String tableId);
    void deleteAllByTableId(String tableId);
}